

import wepy from 'wepy'

const BASE_URL = "http://127.0.0.1:8888/"

export default fetch = (obj) =>{
    return wepy.request({
        url:`${BASE_URL}${obj.url}`,
        data:obj.data ||{},
        method:obj.method || 'GET',
        dataType:obj.dataType || 'json',
        header:obj.header || {}
    })
}


